import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

export default () => {
  const router = new VueRouter({
    base: "/",
    mode: "history",
    routes: [
      { path: "/bar", component: () => import(/* webpackChunkName: "group-bar" */ "../components/bar.vue") },
      //   { path: "/bar", component: () => import("../components/bar.vue") },
      { path: "/foo", component: () => import("../components/foo.vue") },
    ],
  });
  return router;
};
